package  org.fantasy.cpp.core.pojo;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import  org.fantasy.cpp.core.annotation.Field;

@Table("QUERY_CONFIG")
public class QueryConfig{
	
	@Id 
	@Column("query_id") 
	@Field(desc="查询id",nullable=false) 
	private Long queryId; 
	
	@Column("query_code") 
	@Field(desc="查询编码",nullable=true) 
	private String queryCode; 

	@Column("source_id") 
	@Field(desc="数据源id",nullable=true) 
	private Long sourceId; 

	@Column("query_type_id") 
	@Field(desc="查询类型id",nullable=true) 
	private Long queryTypeId; 

	@Column("config_type_id") 
	@Field(desc="类型id",nullable=true) 
	private Long configTypeId; 

	@Column("query_name") 
	@Field(desc="查询名称",nullable=false,maxlenth=256) 
	private String queryName; 

	@Column("query_config") 
	@Field(desc="查询配置",nullable=true) 
	private String queryConfig; 

	@Column("query_desc") 
	@Field(desc="查询描述",nullable=true,maxlenth=1024) 
	private String queryDesc; 

	@Column("create_date") 
	@Field(desc="创建日期",nullable=false) 
	private java.util.Date createDate; 

	@Column("state") 
	@Field(desc="状态",nullable=true,maxlenth=8) 
	private String state; 
	
	public Long getQueryId() {
		return queryId;
	}

	public void setQueryId(Long queryId) {
		this.queryId = queryId;
	}

	public Long getSourceId() {
		return sourceId;
	}

	public void setSourceId(Long sourceId) {
		this.sourceId = sourceId;
	}

	public Long getQueryTypeId() {
		return queryTypeId;
	}

	public void setQueryTypeId(Long queryTypeId) {
		this.queryTypeId = queryTypeId;
	}

	public Long getConfigTypeId() {
		return configTypeId;
	}

	public void setConfigTypeId(Long configTypeId) {
		this.configTypeId = configTypeId;
	}

	public String getQueryName() {
		return queryName;
	}

	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}

	public String getQueryConfig() {
		return queryConfig;
	}

	public void setQueryConfig(String queryConfig) {
		this.queryConfig = queryConfig;
	}

	public String getQueryDesc() {
		return queryDesc;
	}

	public void setQueryDesc(String queryDesc) {
		this.queryDesc = queryDesc;
	}

	public java.util.Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	public String getQueryCode() {
		return queryCode;
	}

	public void setQueryCode(String queryCode) {
		this.queryCode = queryCode;
	}



	private  org.fantasy.cpp.core.pojo.SourceInfo sourceInfo;

	public  org.fantasy.cpp.core.pojo.SourceInfo getSourceInfo() {
		return sourceInfo;
	}

	public void setSourceInfo( org.fantasy.cpp.core.pojo.SourceInfo sourceInfo) {
		this.sourceInfo = sourceInfo;
	}
}